import request from '@/utils/request'

// 查询服务区配置
export function getServiceArea(params) {
  return request({
    url: '/business/serviceArea/list',
    method: 'get',
    params: params
  })
}

// 查询服务区配置详细
export function getServiceAreaInfo(serviceId) {
  return request({
    url: '/business/serviceArea/' + serviceId,
    method: 'get'
  })
}

// 修改服务区配置
export function updateServiceArea(data) {
  return request({
    url: '/business/serviceArea',
    method: 'put',
    data: data
  })
}

// 新增服务区配置
export function addServiceArea(data) {
  return request({
    url: '/business/serviceArea',
    method: 'post',
    data: data
  })
}

// 删除服务区配置
export function delServiceArea(serviceIds) {
  return request({
    url: '/business/serviceArea/' + serviceIds,
    method: 'delete'
  })
}


// 查询车牌分类
export function getBrandCategory() {
  return request({
    url: '/business/brandCategory/list',
    method: 'get'
  })
}


// 查询车型品牌配置列表
export function getBrandCategoryList(params) {
  return request({
    url: `/business/brandCategory/list`,
    method: 'get',
    params: params
  })
}

// 车型品牌配置
export function setBrandCategory(data) {
  return request({
    url: '/business/brandCategory',
    method: 'post',
    data: data
  })
}

// 修改车型品牌配置
export function updateBrandCategory(data) {
  return request({
    url: '/business/brandCategory',
    method: 'put',
    data: data
  })
}
